﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sami_SMS_CRM_Business
{
    public class CollectionTypeRepository : Repository
    {
        public IList<crm_collectiontype> GetAll()
        {
            return DB.crm_collectiontypes.ToList();
        }

        public crm_collectiontype GetById(object Id)
        {
            return DB.crm_collectiontypes.FirstOrDefault(p => p.collectiontype_name.Equals(Id));
        }
    }
}
